<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>


        div{
            box-sizing: border-box;
        }
        .container{
            display: flex;
            flex-wrap: wrap;
            /* flex-direction: column-reverse; */
            flex-direction: row-reverse;
            width: 500px;
            height: 500px;
            background-color: orange;
        }


        .item{
          
            border: solid  1px grey;

            width: 100px;
            height: 50px;
        }


    </style>
</head>
<body>
    
    <div class="container">
        

        <div class="item">1  </div>
        <div class="item"> 2 </div>
        <div class="item"> 3 </div>
        <div class="item"> 4 </div>
        <div class="item"> 5 </div>
        <div class="item"> 6 </div>
       


    </div>






</body>
</html>